<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/3/10 0010
  Time: 下午 5:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String basePath = request.getContextPath();
    String path = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+basePath+"/";
    request.setAttribute("path",path);
%>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <meta name="format-detection" content="telephone=no,address=no,email=no"/>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <title>待收片</title>
    <script type="text/javascript" src="${path}/school/js/jquery.js"></script>
    <link href="${path}/school/css/style.css" rel="stylesheet" media="all">
    <link rel="shortcut icon" href="${path}/school/img/favicon.png">
</head>
<body>
<header class="top_header">
    <h1><a href="javascript:history.go(-1);" class="go_back"></a><span class="black_text">待收片</span></h1>
</header><!-- header -->
<div class="content_wrap kaprompt_wrap">
    <div class="circle">
        <div id="divdown1"></div>
    </div>
    <div class="kaprompt_txt">
        <span>我们正在努力为您修片，</span>
        <span>请耐心等待！</span>
    </div><!-- kaprompt_txt -->

</div><!-- content_wrap -->

<div class="footer_copyright">
    <p><span>苏州知行合一网络科技有限公司</span>提供技术支持，版权所有</p>
</div><!-- footer_copyright -->
<script>
    var interval = 1000;
    function ShowCountDown(year,month,day,divname)
    {
        var now = new Date();
        var endDate = new Date(year, month-1, day);
        var leftTime=now.getTime()-endDate.getTime();
        var leftsecond = parseInt(leftTime/1000);
        var day1=parseInt(leftsecond/(24*60*60*6));
        var day1=Math.floor(leftsecond/(60*60*24));
        var hour=Math.floor((leftsecond-day1*24*60*60)/3600);
        var minute=Math.floor((leftsecond-day1*24*60*60-hour*3600)/60);
        var second=Math.floor(leftsecond-day1*24*60*60-hour*3600-minute*60);
        var cc = document.getElementById(divname);
        //cc.innerHTML = +day1*14+"%";
        cc.innerHTML = "<img src='${path}/school/img/images/"+ day1*1 +".png' />";
        if(day1>6)location.href="${path}/school/kaSP.html";
        //var myDate=new Date();
        //moon = myDate.getMonth()+1;
        //day = myDate.getDate();
        //document.write("<img src='image/cal/"+ moon + day +".png' />");
    }
    window.setInterval(function(){ShowCountDown(${yyyy},${mm},${dd},'divdown1');}, interval);



</script>
</body>
</html>
